/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.hd4ic.gui.background;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.TimeUnit;

/**
 *
 * @author morfant
 */
public class ProfilerHelper {

    public static String converMillisecondsToMinutesWithSeconds(long milliseconds) {

        return milliseconds + "";
//        Date date = new Date(milliseconds);
//        DateFormat formatter = new SimpleDateFormat("HH:mm:ss:SSS");
//        String dateFormatted = formatter.format(date);
//        return dateFormatted;

//        return String.format("%d min, %d sec",
//                TimeUnit.MILLISECONDS.toMinutes(milliseconds),
//                TimeUnit.MILLISECONDS.toSeconds(milliseconds)
//                - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(milliseconds)));
    }
}
